package com.kl.feign;

import com.kl.domain.LogisticsStoreDTOS;
import com.kl.em.Result;
import com.kl.feign.fallback.ThreeSelectFeignFallback;
import com.kl.feign.fallback.UserServiceFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

//网点查询  运单号查询 价格时效查询
                    //kunlun-networkquery-service-a
@FeignClient(value = "kunlun-networkquery-service-a",fallback = ThreeSelectFeignFallback.class)//服务名找项目
public interface ThreeSelectFeign {
    //价格
    @GetMapping("/linelogisticsstore/getPrices")
    Result getPrice(@RequestParam Integer id, @RequestParam Integer volume, @RequestParam Integer kg);
    //网点
    @GetMapping("/logisticsStore/cityId")
    Result<List<LogisticsStoreDTOS>> findById(@RequestParam String storeName);
    //运单号 by ID
    @GetMapping("/waybill/id")
    Result<LogisticsStoreDTOS> findBywaybillId(@RequestParam String waybill_id);
    //运单号 by 手机号
    @GetMapping("/waybill/phone")
    Result<LogisticsStoreDTOS> findByPhone(@RequestParam String consigneePhone);
    //市得区
    @GetMapping("/areasgetareas")
    Result getareas(@RequestParam Integer id);
    //省得市
    @GetMapping("/areas/getcity")
    Result getcity(@RequestParam Integer id);
    //省
    @GetMapping("/areas/TbProvinces")
    Result getprovinces(@RequestParam Integer id);
}
